#ifndef LAYOUTSETTINGSFORM_H
#define LAYOUTSETTINGSFORM_H

#include <QWidget>

class QStackedWidget;
class QLabel;
class QPushButton;
class QComboBox;
class QSpinBox;
class QLineEdit;
class LayoutSettingsForm : public QWidget
{
    Q_OBJECT

public:
    explicit LayoutSettingsForm(QWidget *parent = 0);
    ~LayoutSettingsForm();

private slots:
    void slotLayout();
    void slotDisplay();
private:
    void layoutUI();
    void displayUI();
    void connects();

    QStackedWidget *m_pStackedWdg;
    QLabel *m_pTitleLabel;
    QWidget *m_pLayoutManWdg,*m_pDisplayManWdg;
    QPushButton *m_pLayoutButton,*m_pDisplayButton;
    //layout
    //video wall layout settings
    QSpinBox *m_pRowSpinBox,*m_pColumnSpinBox;
    QPushButton *m_pSetButton,*m_pPlanSaveButton;
    QComboBox *m_pPlanComboBox,*m_pCtrComboBox;
    QLineEdit *m_pPlanLineEdit,*m_pCtrLineEdit;
    QPushButton *m_pActionCleanButton,*m_pActionApplyButton,
    *m_pCtrApplyButton;
    //display
    QPushButton *m_pDisplaySwitchButton,*m_pDisplayLockButton,
    *m_pDisplayResetButton;
};

class SubWidget:public QWidget
{
    Q_OBJECT
public:
    SubWidget();
    ~SubWidget();
protected:
    void paintEvent(QPaintEvent *event);
};

#endif // LAYOUTSETTINGSFORM_H
